<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
        height: 300px;
        overflow: scroll;
        width: 200px;
    }
    img {
        width: 100px;
        height: 100px;
    }
  </style>
</head>
<body>
  <div id="app">
    <div class="box">
      <li v-for="img in imgs" :key="img">
          <img v-lazy="img">
      </li>        
  </div>
  </div>
</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script src="../node_modules/axios/dist/axios.js"></script>
<script>
const loading = 'http://localhost:3001/images/1.gif';
 const vm = new Vue({
        el:'#app',
        data() {
            return {
                imgs: []
            }
        },
        created() {
            axios.get('http://localhost:3001/api/img').then(({data})=>{
                this.imgs = data;
            })
        }
});
</script>

</html>